package com.mytx.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CommentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CommentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTopicIdIsNull() {
            addCriterion("topic_id is null");
            return (Criteria) this;
        }

        public Criteria andTopicIdIsNotNull() {
            addCriterion("topic_id is not null");
            return (Criteria) this;
        }

        public Criteria andTopicIdEqualTo(String value) {
            addCriterion("topic_id =", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdNotEqualTo(String value) {
            addCriterion("topic_id <>", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdGreaterThan(String value) {
            addCriterion("topic_id >", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdGreaterThanOrEqualTo(String value) {
            addCriterion("topic_id >=", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdLessThan(String value) {
            addCriterion("topic_id <", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdLessThanOrEqualTo(String value) {
            addCriterion("topic_id <=", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdLike(String value) {
            addCriterion("topic_id like", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdNotLike(String value) {
            addCriterion("topic_id not like", value, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdIn(List<String> values) {
            addCriterion("topic_id in", values, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdNotIn(List<String> values) {
            addCriterion("topic_id not in", values, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdBetween(String value1, String value2) {
            addCriterion("topic_id between", value1, value2, "topicId");
            return (Criteria) this;
        }

        public Criteria andTopicIdNotBetween(String value1, String value2) {
            addCriterion("topic_id not between", value1, value2, "topicId");
            return (Criteria) this;
        }

        public Criteria andParentIdIsNull() {
            addCriterion("parent_id is null");
            return (Criteria) this;
        }

        public Criteria andParentIdIsNotNull() {
            addCriterion("parent_id is not null");
            return (Criteria) this;
        }

        public Criteria andParentIdEqualTo(String value) {
            addCriterion("parent_id =", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotEqualTo(String value) {
            addCriterion("parent_id <>", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdGreaterThan(String value) {
            addCriterion("parent_id >", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdGreaterThanOrEqualTo(String value) {
            addCriterion("parent_id >=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLessThan(String value) {
            addCriterion("parent_id <", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLessThanOrEqualTo(String value) {
            addCriterion("parent_id <=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLike(String value) {
            addCriterion("parent_id like", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotLike(String value) {
            addCriterion("parent_id not like", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdIn(List<String> values) {
            addCriterion("parent_id in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotIn(List<String> values) {
            addCriterion("parent_id not in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdBetween(String value1, String value2) {
            addCriterion("parent_id between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotBetween(String value1, String value2) {
            addCriterion("parent_id not between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria andTopicTypeIsNull() {
            addCriterion("topic_type is null");
            return (Criteria) this;
        }

        public Criteria andTopicTypeIsNotNull() {
            addCriterion("topic_type is not null");
            return (Criteria) this;
        }

        public Criteria andTopicTypeEqualTo(Integer value) {
            addCriterion("topic_type =", value, "topicType");
            return (Criteria) this;
        }

        public Criteria andTopicTypeNotEqualTo(Integer value) {
            addCriterion("topic_type <>", value, "topicType");
            return (Criteria) this;
        }

        public Criteria andTopicTypeGreaterThan(Integer value) {
            addCriterion("topic_type >", value, "topicType");
            return (Criteria) this;
        }

        public Criteria andTopicTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("topic_type >=", value, "topicType");
            return (Criteria) this;
        }

        public Criteria andTopicTypeLessThan(Integer value) {
            addCriterion("topic_type <", value, "topicType");
            return (Criteria) this;
        }

        public Criteria andTopicTypeLessThanOrEqualTo(Integer value) {
            addCriterion("topic_type <=", value, "topicType");
            return (Criteria) this;
        }

        public Criteria andTopicTypeIn(List<Integer> values) {
            addCriterion("topic_type in", values, "topicType");
            return (Criteria) this;
        }

        public Criteria andTopicTypeNotIn(List<Integer> values) {
            addCriterion("topic_type not in", values, "topicType");
            return (Criteria) this;
        }

        public Criteria andTopicTypeBetween(Integer value1, Integer value2) {
            addCriterion("topic_type between", value1, value2, "topicType");
            return (Criteria) this;
        }

        public Criteria andTopicTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("topic_type not between", value1, value2, "topicType");
            return (Criteria) this;
        }

        public Criteria andContentIsNull() {
            addCriterion("content is null");
            return (Criteria) this;
        }

        public Criteria andContentIsNotNull() {
            addCriterion("content is not null");
            return (Criteria) this;
        }

        public Criteria andContentEqualTo(String value) {
            addCriterion("content =", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotEqualTo(String value) {
            addCriterion("content <>", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThan(String value) {
            addCriterion("content >", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("content >=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThan(String value) {
            addCriterion("content <", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualTo(String value) {
            addCriterion("content <=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLike(String value) {
            addCriterion("content like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotLike(String value) {
            addCriterion("content not like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentIn(List<String> values) {
            addCriterion("content in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotIn(List<String> values) {
            addCriterion("content not in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentBetween(String value1, String value2) {
            addCriterion("content between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotBetween(String value1, String value2) {
            addCriterion("content not between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andFromUidIsNull() {
            addCriterion("from_uid is null");
            return (Criteria) this;
        }

        public Criteria andFromUidIsNotNull() {
            addCriterion("from_uid is not null");
            return (Criteria) this;
        }

        public Criteria andFromUidEqualTo(String value) {
            addCriterion("from_uid =", value, "fromUid");
            return (Criteria) this;
        }

        public Criteria andFromUidNotEqualTo(String value) {
            addCriterion("from_uid <>", value, "fromUid");
            return (Criteria) this;
        }

        public Criteria andFromUidGreaterThan(String value) {
            addCriterion("from_uid >", value, "fromUid");
            return (Criteria) this;
        }

        public Criteria andFromUidGreaterThanOrEqualTo(String value) {
            addCriterion("from_uid >=", value, "fromUid");
            return (Criteria) this;
        }

        public Criteria andFromUidLessThan(String value) {
            addCriterion("from_uid <", value, "fromUid");
            return (Criteria) this;
        }

        public Criteria andFromUidLessThanOrEqualTo(String value) {
            addCriterion("from_uid <=", value, "fromUid");
            return (Criteria) this;
        }

        public Criteria andFromUidLike(String value) {
            addCriterion("from_uid like", value, "fromUid");
            return (Criteria) this;
        }

        public Criteria andFromUidNotLike(String value) {
            addCriterion("from_uid not like", value, "fromUid");
            return (Criteria) this;
        }

        public Criteria andFromUidIn(List<String> values) {
            addCriterion("from_uid in", values, "fromUid");
            return (Criteria) this;
        }

        public Criteria andFromUidNotIn(List<String> values) {
            addCriterion("from_uid not in", values, "fromUid");
            return (Criteria) this;
        }

        public Criteria andFromUidBetween(String value1, String value2) {
            addCriterion("from_uid between", value1, value2, "fromUid");
            return (Criteria) this;
        }

        public Criteria andFromUidNotBetween(String value1, String value2) {
            addCriterion("from_uid not between", value1, value2, "fromUid");
            return (Criteria) this;
        }

        public Criteria andFromNickIsNull() {
            addCriterion("from_nick is null");
            return (Criteria) this;
        }

        public Criteria andFromNickIsNotNull() {
            addCriterion("from_nick is not null");
            return (Criteria) this;
        }

        public Criteria andFromNickEqualTo(String value) {
            addCriterion("from_nick =", value, "fromNick");
            return (Criteria) this;
        }

        public Criteria andFromNickNotEqualTo(String value) {
            addCriterion("from_nick <>", value, "fromNick");
            return (Criteria) this;
        }

        public Criteria andFromNickGreaterThan(String value) {
            addCriterion("from_nick >", value, "fromNick");
            return (Criteria) this;
        }

        public Criteria andFromNickGreaterThanOrEqualTo(String value) {
            addCriterion("from_nick >=", value, "fromNick");
            return (Criteria) this;
        }

        public Criteria andFromNickLessThan(String value) {
            addCriterion("from_nick <", value, "fromNick");
            return (Criteria) this;
        }

        public Criteria andFromNickLessThanOrEqualTo(String value) {
            addCriterion("from_nick <=", value, "fromNick");
            return (Criteria) this;
        }

        public Criteria andFromNickLike(String value) {
            addCriterion("from_nick like", value, "fromNick");
            return (Criteria) this;
        }

        public Criteria andFromNickNotLike(String value) {
            addCriterion("from_nick not like", value, "fromNick");
            return (Criteria) this;
        }

        public Criteria andFromNickIn(List<String> values) {
            addCriterion("from_nick in", values, "fromNick");
            return (Criteria) this;
        }

        public Criteria andFromNickNotIn(List<String> values) {
            addCriterion("from_nick not in", values, "fromNick");
            return (Criteria) this;
        }

        public Criteria andFromNickBetween(String value1, String value2) {
            addCriterion("from_nick between", value1, value2, "fromNick");
            return (Criteria) this;
        }

        public Criteria andFromNickNotBetween(String value1, String value2) {
            addCriterion("from_nick not between", value1, value2, "fromNick");
            return (Criteria) this;
        }

        public Criteria andFromAvatarIsNull() {
            addCriterion("from_avatar is null");
            return (Criteria) this;
        }

        public Criteria andFromAvatarIsNotNull() {
            addCriterion("from_avatar is not null");
            return (Criteria) this;
        }

        public Criteria andFromAvatarEqualTo(String value) {
            addCriterion("from_avatar =", value, "fromAvatar");
            return (Criteria) this;
        }

        public Criteria andFromAvatarNotEqualTo(String value) {
            addCriterion("from_avatar <>", value, "fromAvatar");
            return (Criteria) this;
        }

        public Criteria andFromAvatarGreaterThan(String value) {
            addCriterion("from_avatar >", value, "fromAvatar");
            return (Criteria) this;
        }

        public Criteria andFromAvatarGreaterThanOrEqualTo(String value) {
            addCriterion("from_avatar >=", value, "fromAvatar");
            return (Criteria) this;
        }

        public Criteria andFromAvatarLessThan(String value) {
            addCriterion("from_avatar <", value, "fromAvatar");
            return (Criteria) this;
        }

        public Criteria andFromAvatarLessThanOrEqualTo(String value) {
            addCriterion("from_avatar <=", value, "fromAvatar");
            return (Criteria) this;
        }

        public Criteria andFromAvatarLike(String value) {
            addCriterion("from_avatar like", value, "fromAvatar");
            return (Criteria) this;
        }

        public Criteria andFromAvatarNotLike(String value) {
            addCriterion("from_avatar not like", value, "fromAvatar");
            return (Criteria) this;
        }

        public Criteria andFromAvatarIn(List<String> values) {
            addCriterion("from_avatar in", values, "fromAvatar");
            return (Criteria) this;
        }

        public Criteria andFromAvatarNotIn(List<String> values) {
            addCriterion("from_avatar not in", values, "fromAvatar");
            return (Criteria) this;
        }

        public Criteria andFromAvatarBetween(String value1, String value2) {
            addCriterion("from_avatar between", value1, value2, "fromAvatar");
            return (Criteria) this;
        }

        public Criteria andFromAvatarNotBetween(String value1, String value2) {
            addCriterion("from_avatar not between", value1, value2, "fromAvatar");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andChildSizeIsNull() {
            addCriterion("child_size is null");
            return (Criteria) this;
        }

        public Criteria andChildSizeIsNotNull() {
            addCriterion("child_size is not null");
            return (Criteria) this;
        }

        public Criteria andChildSizeEqualTo(Integer value) {
            addCriterion("child_size =", value, "childSize");
            return (Criteria) this;
        }

        public Criteria andChildSizeNotEqualTo(Integer value) {
            addCriterion("child_size <>", value, "childSize");
            return (Criteria) this;
        }

        public Criteria andChildSizeGreaterThan(Integer value) {
            addCriterion("child_size >", value, "childSize");
            return (Criteria) this;
        }

        public Criteria andChildSizeGreaterThanOrEqualTo(Integer value) {
            addCriterion("child_size >=", value, "childSize");
            return (Criteria) this;
        }

        public Criteria andChildSizeLessThan(Integer value) {
            addCriterion("child_size <", value, "childSize");
            return (Criteria) this;
        }

        public Criteria andChildSizeLessThanOrEqualTo(Integer value) {
            addCriterion("child_size <=", value, "childSize");
            return (Criteria) this;
        }

        public Criteria andChildSizeIn(List<Integer> values) {
            addCriterion("child_size in", values, "childSize");
            return (Criteria) this;
        }

        public Criteria andChildSizeNotIn(List<Integer> values) {
            addCriterion("child_size not in", values, "childSize");
            return (Criteria) this;
        }

        public Criteria andChildSizeBetween(Integer value1, Integer value2) {
            addCriterion("child_size between", value1, value2, "childSize");
            return (Criteria) this;
        }

        public Criteria andChildSizeNotBetween(Integer value1, Integer value2) {
            addCriterion("child_size not between", value1, value2, "childSize");
            return (Criteria) this;
        }

        public Criteria andPraiseSizeIsNull() {
            addCriterion("praise_size is null");
            return (Criteria) this;
        }

        public Criteria andPraiseSizeIsNotNull() {
            addCriterion("praise_size is not null");
            return (Criteria) this;
        }

        public Criteria andPraiseSizeEqualTo(Integer value) {
            addCriterion("praise_size =", value, "praiseSize");
            return (Criteria) this;
        }

        public Criteria andPraiseSizeNotEqualTo(Integer value) {
            addCriterion("praise_size <>", value, "praiseSize");
            return (Criteria) this;
        }

        public Criteria andPraiseSizeGreaterThan(Integer value) {
            addCriterion("praise_size >", value, "praiseSize");
            return (Criteria) this;
        }

        public Criteria andPraiseSizeGreaterThanOrEqualTo(Integer value) {
            addCriterion("praise_size >=", value, "praiseSize");
            return (Criteria) this;
        }

        public Criteria andPraiseSizeLessThan(Integer value) {
            addCriterion("praise_size <", value, "praiseSize");
            return (Criteria) this;
        }

        public Criteria andPraiseSizeLessThanOrEqualTo(Integer value) {
            addCriterion("praise_size <=", value, "praiseSize");
            return (Criteria) this;
        }

        public Criteria andPraiseSizeIn(List<Integer> values) {
            addCriterion("praise_size in", values, "praiseSize");
            return (Criteria) this;
        }

        public Criteria andPraiseSizeNotIn(List<Integer> values) {
            addCriterion("praise_size not in", values, "praiseSize");
            return (Criteria) this;
        }

        public Criteria andPraiseSizeBetween(Integer value1, Integer value2) {
            addCriterion("praise_size between", value1, value2, "praiseSize");
            return (Criteria) this;
        }

        public Criteria andPraiseSizeNotBetween(Integer value1, Integer value2) {
            addCriterion("praise_size not between", value1, value2, "praiseSize");
            return (Criteria) this;
        }

        public Criteria andToUidIsNull() {
            addCriterion("to_uid is null");
            return (Criteria) this;
        }

        public Criteria andToUidIsNotNull() {
            addCriterion("to_uid is not null");
            return (Criteria) this;
        }

        public Criteria andToUidEqualTo(String value) {
            addCriterion("to_uid =", value, "toUid");
            return (Criteria) this;
        }

        public Criteria andToUidNotEqualTo(String value) {
            addCriterion("to_uid <>", value, "toUid");
            return (Criteria) this;
        }

        public Criteria andToUidGreaterThan(String value) {
            addCriterion("to_uid >", value, "toUid");
            return (Criteria) this;
        }

        public Criteria andToUidGreaterThanOrEqualTo(String value) {
            addCriterion("to_uid >=", value, "toUid");
            return (Criteria) this;
        }

        public Criteria andToUidLessThan(String value) {
            addCriterion("to_uid <", value, "toUid");
            return (Criteria) this;
        }

        public Criteria andToUidLessThanOrEqualTo(String value) {
            addCriterion("to_uid <=", value, "toUid");
            return (Criteria) this;
        }

        public Criteria andToUidLike(String value) {
            addCriterion("to_uid like", value, "toUid");
            return (Criteria) this;
        }

        public Criteria andToUidNotLike(String value) {
            addCriterion("to_uid not like", value, "toUid");
            return (Criteria) this;
        }

        public Criteria andToUidIn(List<String> values) {
            addCriterion("to_uid in", values, "toUid");
            return (Criteria) this;
        }

        public Criteria andToUidNotIn(List<String> values) {
            addCriterion("to_uid not in", values, "toUid");
            return (Criteria) this;
        }

        public Criteria andToUidBetween(String value1, String value2) {
            addCriterion("to_uid between", value1, value2, "toUid");
            return (Criteria) this;
        }

        public Criteria andToUidNotBetween(String value1, String value2) {
            addCriterion("to_uid not between", value1, value2, "toUid");
            return (Criteria) this;
        }

        public Criteria andToNickIsNull() {
            addCriterion("to_nick is null");
            return (Criteria) this;
        }

        public Criteria andToNickIsNotNull() {
            addCriterion("to_nick is not null");
            return (Criteria) this;
        }

        public Criteria andToNickEqualTo(String value) {
            addCriterion("to_nick =", value, "toNick");
            return (Criteria) this;
        }

        public Criteria andToNickNotEqualTo(String value) {
            addCriterion("to_nick <>", value, "toNick");
            return (Criteria) this;
        }

        public Criteria andToNickGreaterThan(String value) {
            addCriterion("to_nick >", value, "toNick");
            return (Criteria) this;
        }

        public Criteria andToNickGreaterThanOrEqualTo(String value) {
            addCriterion("to_nick >=", value, "toNick");
            return (Criteria) this;
        }

        public Criteria andToNickLessThan(String value) {
            addCriterion("to_nick <", value, "toNick");
            return (Criteria) this;
        }

        public Criteria andToNickLessThanOrEqualTo(String value) {
            addCriterion("to_nick <=", value, "toNick");
            return (Criteria) this;
        }

        public Criteria andToNickLike(String value) {
            addCriterion("to_nick like", value, "toNick");
            return (Criteria) this;
        }

        public Criteria andToNickNotLike(String value) {
            addCriterion("to_nick not like", value, "toNick");
            return (Criteria) this;
        }

        public Criteria andToNickIn(List<String> values) {
            addCriterion("to_nick in", values, "toNick");
            return (Criteria) this;
        }

        public Criteria andToNickNotIn(List<String> values) {
            addCriterion("to_nick not in", values, "toNick");
            return (Criteria) this;
        }

        public Criteria andToNickBetween(String value1, String value2) {
            addCriterion("to_nick between", value1, value2, "toNick");
            return (Criteria) this;
        }

        public Criteria andToNickNotBetween(String value1, String value2) {
            addCriterion("to_nick not between", value1, value2, "toNick");
            return (Criteria) this;
        }

        public Criteria andToAvatarIsNull() {
            addCriterion("to_avatar is null");
            return (Criteria) this;
        }

        public Criteria andToAvatarIsNotNull() {
            addCriterion("to_avatar is not null");
            return (Criteria) this;
        }

        public Criteria andToAvatarEqualTo(String value) {
            addCriterion("to_avatar =", value, "toAvatar");
            return (Criteria) this;
        }

        public Criteria andToAvatarNotEqualTo(String value) {
            addCriterion("to_avatar <>", value, "toAvatar");
            return (Criteria) this;
        }

        public Criteria andToAvatarGreaterThan(String value) {
            addCriterion("to_avatar >", value, "toAvatar");
            return (Criteria) this;
        }

        public Criteria andToAvatarGreaterThanOrEqualTo(String value) {
            addCriterion("to_avatar >=", value, "toAvatar");
            return (Criteria) this;
        }

        public Criteria andToAvatarLessThan(String value) {
            addCriterion("to_avatar <", value, "toAvatar");
            return (Criteria) this;
        }

        public Criteria andToAvatarLessThanOrEqualTo(String value) {
            addCriterion("to_avatar <=", value, "toAvatar");
            return (Criteria) this;
        }

        public Criteria andToAvatarLike(String value) {
            addCriterion("to_avatar like", value, "toAvatar");
            return (Criteria) this;
        }

        public Criteria andToAvatarNotLike(String value) {
            addCriterion("to_avatar not like", value, "toAvatar");
            return (Criteria) this;
        }

        public Criteria andToAvatarIn(List<String> values) {
            addCriterion("to_avatar in", values, "toAvatar");
            return (Criteria) this;
        }

        public Criteria andToAvatarNotIn(List<String> values) {
            addCriterion("to_avatar not in", values, "toAvatar");
            return (Criteria) this;
        }

        public Criteria andToAvatarBetween(String value1, String value2) {
            addCriterion("to_avatar between", value1, value2, "toAvatar");
            return (Criteria) this;
        }

        public Criteria andToAvatarNotBetween(String value1, String value2) {
            addCriterion("to_avatar not between", value1, value2, "toAvatar");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("create_date is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("create_date is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("create_date =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("create_date <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("create_date >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("create_date >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("create_date <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("create_date <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("create_date in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("create_date not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("create_date between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("create_date not between", value1, value2, "createDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}